Skip to content

Conversation

@vdusek
Copy link
Contributor

@vdusek vdusek commented Nov 20, 2025

Closes: #666

@vdusek vdusek requested a review from janbuchar November 20, 2025 12:25
@vdusek vdusek self-assigned this Nov 20, 2025
@github-actions github-actions bot added this to the 128th sprint - Tooling team milestone Nov 20, 2025
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Nov 20, 2025
# START OF CRITICAL SECTION - no awaits here
# Acquire lock to prevent race conditions between concurrent charge calls
# (e.g., when Actor.push_data with charging is called concurrently with Actor.charge).
async with self._charge_lock:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This, on its own, doesn't fix the issue of multiple interleaved, PPE-aware Actor.push_data calls. The lock would need to be held for the whole duration of the push_data+charge sequence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Synchronize Actor.charge calls to prevent race conditions in Actor.push_data

3 participants